<!DOCTYPE html>
<html lang="zh-cn">

	<head>
		<meta charset="utf-8">
		<title>__TITLE__</title>
		<meta name="description" content="{$shopGoods.description}">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="msapplication-tap-highlight" content="no">
		<meta content="telephone=no" name="format-detection">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<link rel="stylesheet" href="__COMMON__/css/2/common.min.css">
		<link rel="stylesheet" href="__STYLE__/DisShop/style/product.min.css">
		<script src="__COMMON__/js/requirejs.js" charset="utf-8"></script>
		<script src="__COMMON__/js/zepto/zepto.min.js" charset="utf-8"></script>
		<script src="__STYLE__/DisShop/script/app.js" charset="utf-8"></script>
		<script type="text/javascript">
			requirejs.config({
				baseUrl: "__COMMON__/js",
				paths: {
					modal: "__COMMON__/js/2/modal",
					slide: "__COMMON__/js/2/slide",
					artTemplate: "__COMMON__/js/artTemplate",
					wx: 'http://res.wx.qq.com/open/js/jweixin-1.0.0'
				}
			});
		</script>
		<style type="text/css">
			.gh-tip {
				padding: .2em;
				width: 100%;
				height: 3.286em;
				background-color: rgba(18, 142, 149, .8);
				color: #fff;
			}
			.btn-theme {
				padding: .3em .5em;
				border: 2px solid #fff;
			}
			.gh-tip-face {
				margin-right: .5em;
				width: 3em;
				height: 3em;
				overflow: hidden;
			}
			.underline {
				text-decoration: underline;
			}
			.iconfont {
				width: 0.9em;
				height: 0.9em;
				background-size: cover;
			}
			.icon-home {
				background-repeat: no-repeat;
				background-image: url();
			}
			.icon-cart {
				background-repeat: no-repeat;
				background-image: url();
			}
			.icon-person {
				background-repeat: no-repeat;
				background-image: url();
			}
			.icon-achievement {
				background-repeat: no-repeat;
				background-image: url();
			}
			#cart-count {
				position: absolute;
				top: 3px;
				left: 66%;
				z-index: 9;
				height: 1em;
				min-width: 1em;
				border-radius: 50%;
				background-color: #eb3634;
				box-shadow: 0 0 0 2px #fff;
				color: #fff;
				font-size: 1em;
				line-height: 1em;
			}
			.pr-copyright {
                width: 100%;
                padding: 0.8em;
                padding-bottom: 100px;
            }
            .pr-copyright p{
                padding: 5px;
            }
            .pr-copyright p a{
                text-decoration: underline;
            }
		</style>
	</head>

	<body>

		{__CONTENT__}

		<!--<footer class="pr-bottom">
			<tag:productConfig id="vo">
				<a class="pr-bottom-nav" href="{$vo.url}">{$vo.name}</a>
			</tag:productConfig>
		</footer>-->

		<!--<p class="pr-copyright">&copy;<script>document.write(new Date().getFullYear());</script>&nbsp;&nbsp;{$product.name}</p>-->
		<div class="pr-copyright">
			<p>{$config.copyright}</p>
			<notempty name="config.tel">
				<p><a href="tel:{$config.tel}" class="underline">联系客服</a>
				</p>
			</notempty>
			<p>{$system.bottom}</p>
		</div>

		<!-- 导航菜单 -->
		<nav class="pr-nav flex-row">
			<a class="pr-nav-item row-item" href="{$config.url}">
				<i class="iconfont icon-home">&nbsp;</i>
				<p class="pr-nav-title">首页</p>
			</a>
			<if condition="$user['subscribe']">
				<a class="pr-nav-item row-item" href="{:url(null, 'DisShop', 'my', 'sid='.$sid)}">
					<i class="iconfont icon-person">&nbsp;</i>
					<p class="pr-nav-title">我的</p>
				</a>
			</if>
			<a class="pr-nav-item row-item" href="{:url(null, 'DisShopCart', 'showCart', 'sid='.$sid)}">
				<i class="iconfont icon-cart">&nbsp;</i>
				<p class="pr-nav-title">购物车</p>
				<span id="cart-count">{:R('Home/DisShopCart/getCount')}</span>
			</a>
			<if condition="$user['subscribe']">
				<a class="pr-nav-item row-item" href="{:url(null, 'DisShop', 'achievement', 'sid='.$sid)}">
					<i class="iconfont icon-achievement">&nbsp;</i>
					<p class="pr-nav-title">我的业绩</p>
				</a>
			</if>
		</nav>

		<!-- 微信分享开始 -->
		<script type="text/javascript">
			var share = {$share},
				debug = false;
			require(['http://res.wx.qq.com/open/js/jweixin-1.0.0.js'], function(wx) {
				wx.config({
					debug: debug,
					appId: '{$wxConfig.appId}',
					timestamp: "{$wxConfig.timestamp}",
					nonceStr: '{$wxConfig.nonceStr}',
					signature: '{$wxConfig.signature}',
					jsApiList: [
						'checkJsApi',
						'onMenuShareTimeline',
						'onMenuShareAppMessage',
						'onMenuShareQQ',
						'onMenuShareWeibo',
						'hideMenuItems',
						'showMenuItems',
						'hideAllNonBaseMenuItem',
						'showAllNonBaseMenuItem',
						'translateVoice',
						'startRecord',
						'stopRecord',
						'onRecordEnd',
						'playVoice',
						'pauseVoice',
						'stopVoice',
						'uploadVoice',
						'downloadVoice',
						'chooseImage',
						'previewImage',
						'uploadImage',
						'downloadImage',
						'getNetworkType',
						'openLocation',
						'getLocation',
						'hideOptionMenu',
						'showOptionMenu',
						'closeWindow',
						'scanQRCode',
						'chooseWXPay',
						'openProductSpecificView',
						'addCard',
						'chooseCard',
						'openCard'
					]
				});
				wx.ready(function() {
					wx.onMenuShareAppMessage({
						link: share.link,
						title: share.title,
						desc: share.desc,
						imgUrl: share.imgUrl
					})
					wx.onMenuShareTimeline({
						link: share.link,
						title: share.desc,
						imgUrl: share.imgUrl
					})
				});
			})
		</script>
		<!-- 微信分享结束 -->

		<php>
			if(isset($_GET['debug'])) {
		</php>
		<script type="text/javascript">
			$("a").click(function() {
				var href = $(this).attr("href");
				href.indexOf("javascript") == 0 || href.indexOf("#") == 0 || $(this).attr('href', href + '?debug');
			});
		</script>
		<php>
			}
		</php>

		<div id="utuo-top">{$system.top}</div>
		{$system.statistics}
	</body>

</html>